<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Battle: C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/SpaceBattleDev/Headers/Modele/Vaisseau.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Battle
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/SpaceBattleDev/Headers/Modele/Vaisseau.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 ﻿
<a name="l00009"></a>00009 <span class="preprocessor">#pragma once</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define WANTDLLEXP</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#ifdef WANTDLLEXP       //exportation dll</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">        #define DLL  __declspec( dllexport )</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">        #define EXTERNC extern &quot;C&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">        #define DLL             //standard</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">        #define EXTERNC</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#define NBCHARGESMAXVM 3</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#define NBCHARGESMAXBA 2</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00032"></a>00032 <span class="preprocessor">#define NBCHARGESMAXCA 1</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00037"></a>00037 <span class="preprocessor">#define NBREBONDSMAXVM 5</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#define NBREBONDSMAXBA 4</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#define NBREBONDSMAXCA 3</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a>00049  
<a name="l00054"></a><a class="code" href="class_vaisseau.html">00054</a> <span class="keyword">class </span><a class="code" href="class_vaisseau.html">Vaisseau</a> {
<a name="l00055"></a>00055 <span class="keyword">protected</span>:
<a name="l00056"></a>00056         <span class="comment">/* ----- ATTRIBUTS ----- */</span>
<a name="l00057"></a>00057 
<a name="l00058"></a><a class="code" href="class_vaisseau.html#af79ed326c3c2b1f0ee63f6eb3285dfc2">00058</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_vaisseau.html#af79ed326c3c2b1f0ee63f6eb3285dfc2">_nbCharges</a>;        
<a name="l00059"></a><a class="code" href="class_vaisseau.html#a7676e13631b5c85a217f676b00e0c731">00059</a>         <span class="keywordtype">bool</span> <a class="code" href="class_vaisseau.html#a7676e13631b5c85a217f676b00e0c731">_hasArtefact</a>;                      
<a name="l00060"></a><a class="code" href="class_vaisseau.html#a3721996e86f9ebeb43beb380849d709f">00060</a>         <span class="keywordtype">int</span> <a class="code" href="class_vaisseau.html#a3721996e86f9ebeb43beb380849d709f">_x</a>;                                         
<a name="l00061"></a><a class="code" href="class_vaisseau.html#a644bf081117eb1f94a75cefa935f4a3e">00061</a>         <span class="keywordtype">int</span> <a class="code" href="class_vaisseau.html#a644bf081117eb1f94a75cefa935f4a3e">_y</a>;                                         
<a name="l00063"></a>00063 <span class="keyword">public</span>:
<a name="l00064"></a>00064 
<a name="l00065"></a>00065         <span class="comment">/* ----- CONSTRUCTEURS ----- */</span>
<a name="l00066"></a>00066 
<a name="l00071"></a>00071         <a class="code" href="class_vaisseau.html#a86378a70f0d92fcc6c5c5973574b2b7d" title="Constructeur de la classe Vaisseau.">Vaisseau</a>();
<a name="l00072"></a>00072 
<a name="l00079"></a>00079         <a class="code" href="class_vaisseau.html#a86378a70f0d92fcc6c5c5973574b2b7d" title="Constructeur de la classe Vaisseau.">Vaisseau</a>(<span class="keywordtype">int</span> posX, <span class="keywordtype">int</span> posY);
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 
<a name="l00082"></a>00082         <span class="comment">/* ----- GETTERS ----- */</span>
<a name="l00083"></a>00083          
<a name="l00089"></a><a class="code" href="class_vaisseau.html#ac7e730eee2b9f460fda7e69b2ea38e2c">00089</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_vaisseau.html#ac7e730eee2b9f460fda7e69b2ea38e2c" title="Getter pour l&#39;attribut _nbCharges.">getNbCharges</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_vaisseau.html#af79ed326c3c2b1f0ee63f6eb3285dfc2">_nbCharges</a>; }
<a name="l00090"></a>00090 
<a name="l00096"></a><a class="code" href="class_vaisseau.html#a781592e2c53e3d347a2bee7735528a5e">00096</a>         <span class="keywordtype">bool</span> <a class="code" href="class_vaisseau.html#a781592e2c53e3d347a2bee7735528a5e" title="Getter pour l&#39;attribut _hasArtefact.">hasArtefact</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_vaisseau.html#a7676e13631b5c85a217f676b00e0c731">_hasArtefact</a>; }
<a name="l00097"></a>00097 
<a name="l00103"></a><a class="code" href="class_vaisseau.html#a5aeb911213529c462fca9e262bd13ead">00103</a>         <span class="keywordtype">int</span> <a class="code" href="class_vaisseau.html#a5aeb911213529c462fca9e262bd13ead" title="Getter pour l&#39;attribut _x.">getX</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_vaisseau.html#a3721996e86f9ebeb43beb380849d709f">_x</a>; }
<a name="l00104"></a>00104 
<a name="l00110"></a><a class="code" href="class_vaisseau.html#aa7a14678ac9285a72c6843cbf3eb8799">00110</a>         <span class="keywordtype">int</span> <a class="code" href="class_vaisseau.html#aa7a14678ac9285a72c6843cbf3eb8799" title="Getter pour l&#39;attribut _y.">getY</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_vaisseau.html#a644bf081117eb1f94a75cefa935f4a3e">_y</a>; }
<a name="l00111"></a>00111 
<a name="l00112"></a>00112         
<a name="l00113"></a>00113         <span class="comment">/* ----- SETTERS ----- */</span>
<a name="l00114"></a>00114 
<a name="l00120"></a><a class="code" href="class_vaisseau.html#a6eeb2f6bca679eec31b8c97ed90e2bdc">00120</a>         <span class="keywordtype">void</span> <a class="code" href="class_vaisseau.html#a6eeb2f6bca679eec31b8c97ed90e2bdc" title="Setter pour l&#39;attribut _hasArtefact.">setHasArtefact</a>(<span class="keywordtype">bool</span> b) { <a class="code" href="class_vaisseau.html#a7676e13631b5c85a217f676b00e0c731">_hasArtefact</a> = b; }
<a name="l00121"></a>00121          
<a name="l00127"></a><a class="code" href="class_vaisseau.html#a04c30a62710aaedccc09b8eb0ddfc60f">00127</a>         <span class="keywordtype">void</span> <a class="code" href="class_vaisseau.html#a04c30a62710aaedccc09b8eb0ddfc60f" title="Setter pour l&#39;attribut _x.">setX</a>(<span class="keywordtype">int</span> posX) { <a class="code" href="class_vaisseau.html#a3721996e86f9ebeb43beb380849d709f">_x</a> = posX; }
<a name="l00128"></a>00128 
<a name="l00134"></a><a class="code" href="class_vaisseau.html#af6da2ac26871dc69e4798448c30d60b6">00134</a>         <span class="keywordtype">void</span> <a class="code" href="class_vaisseau.html#af6da2ac26871dc69e4798448c30d60b6" title="Setter pour l&#39;attribut _y.">setY</a>(<span class="keywordtype">int</span> posY) { <a class="code" href="class_vaisseau.html#a644bf081117eb1f94a75cefa935f4a3e">_y</a> = posY; }
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 
<a name="l00137"></a>00137         <span class="comment">/* ----- METHODES ----- */</span>
<a name="l00138"></a>00138 
<a name="l00145"></a><a class="code" href="class_vaisseau.html#ac8640338940c670bbe47f591a8ace355">00145</a>         <span class="keywordtype">void</span> <a class="code" href="class_vaisseau.html#ac8640338940c670bbe47f591a8ace355" title="Modifie la position du vaisseau avec de nouvelles coordonnees.">deplacementAbsolu</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) { <a class="code" href="class_vaisseau.html#a04c30a62710aaedccc09b8eb0ddfc60f" title="Setter pour l&#39;attribut _x.">setX</a>(x); <a class="code" href="class_vaisseau.html#af6da2ac26871dc69e4798448c30d60b6" title="Setter pour l&#39;attribut _y.">setY</a>(y); };
<a name="l00146"></a>00146          
<a name="l00154"></a><a class="code" href="class_vaisseau.html#a90277df24ddecf65367af847c73277b9">00154</a>         <span class="keywordtype">void</span> <a class="code" href="class_vaisseau.html#a10de179377751b826fa6c524da1b92e8" title="Modifie la position du vaisseau avec un deplacement relatif a la position actuelle.">deplacementRelatif</a>(<span class="keywordtype">int</span> dx, <span class="keywordtype">int</span> dy) { <a class="code" href="class_vaisseau.html#a04c30a62710aaedccc09b8eb0ddfc60f" title="Setter pour l&#39;attribut _x.">setX</a>(<a class="code" href="class_vaisseau.html#a3721996e86f9ebeb43beb380849d709f">_x</a> + dx); <a class="code" href="class_vaisseau.html#af6da2ac26871dc69e4798448c30d60b6" title="Setter pour l&#39;attribut _y.">setY</a>(<a class="code" href="class_vaisseau.html#a644bf081117eb1f94a75cefa935f4a3e">_y</a> + dy); };
<a name="l00155"></a>00155 
<a name="l00160"></a>00160         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_vaisseau.html#a90277df24ddecf65367af847c73277b9" title="Methode vituelle pure.">tirer</a>() = 0;
<a name="l00161"></a>00161 
<a name="l00166"></a>00166         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_vaisseau.html#afcba850765899c848c14ec3bab6e2ad8" title="Methode vituelle pure.">charger</a>() = 0;
<a name="l00167"></a>00167 
<a name="l00168"></a>00168 };
<a name="l00169"></a>00169 EXTERNC DLL <span class="keywordtype">void</span> VAISSEAU_deplacementAbsolu(<a class="code" href="class_vaisseau.html">Vaisseau</a>*);
<a name="l00170"></a>00170 EXTERNC DLL <span class="keywordtype">void</span> VAISSEAU_deplacementRelatif(<a class="code" href="class_vaisseau.html">Vaisseau</a>*);
<a name="l00171"></a>00171 EXTERNC DLL <span class="keywordtype">void</span> VAISSEAU_tirer(<a class="code" href="class_vaisseau.html">Vaisseau</a>*);
<a name="l00172"></a>00172 EXTERNC DLL <span class="keywordtype">void</span> VAISSEAU_charger(<a class="code" href="class_vaisseau.html">Vaisseau</a>*);
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 11 2012 23:30:05 for Space Battle by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
